<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class Retrieve extends Validate
{
    protected $rule = [
        'mobile' => 'require|mobile',
        'password' => 'require|min:6|confirm',
        'captcha' => 'require'
    ];

    protected $message = [
        'mobile.require' => '请填写手机号',
        'mobile.mobile' => '手机号格式有误',
        'password.require' => '请填写新密码',
        'password.min' => '新密码至少六位',
        'password.confirm' => '确认新密码不一致',
        'captcha.require' => '请填写短信验证码'
    ];
}